package com.fm.core;

import java.io.IOException;

import static com.fm.service.service_ListFile.ListFile;
import static com.fm.service.service_UpLoadFile.UpLoadFile;
import static com.fm.service.service_download.download;
import static com.fm.service.service_read.read;

public class core {

    public static void SelectAction(String num) {
        switch (num) {
            //查询
            case "1" :
                ListFile(num);
                break;
            //下载
            case "2" :
                download(num);
                break;
            //上传
            case "3" :
                UpLoadFile(num);
                break;
            //读取本地
            case "4" :
                read(num);
                break;
            //退出
            case "5" :
                System.exit(0);
                break;

            default: System.out.println("输入错误 X ");

        }

    }
}
